package com.suyuan.service;

import com.suyuan.entity.CustomCartItem;
import com.suyuan.entity.CustomerCart;
import com.suyuan.vo.CustomerCartVO;

/**
 * Created by yang on 2018/4/6.
 */
public interface CustomCartService {

    /**
     * 根据客户id查询购物车信息和购物项列表
     * @param id
     * @return
     */
    CustomerCartVO findByCusId(Integer id);

    boolean addCartItem(CustomCartItem item)throws Exception;

    boolean deleteById(Integer id);

    boolean clearCart(Integer cartId);

    boolean changeItemCount(Integer id, Integer count) throws Exception;
}
